/*
 * @Author: 詹真琦(legendryztachi@gmail.com)
 * @Date: 2021-03-30 16:16:58
 * @LastEditors: 詹真琦(legendryztachi@gmail.com)
 * @LastEditTime: 2021-11-22 16:45:06
 * @FilePath: \code\cwp-front\pc-collaboration\src\api\index.js
 * @Description:
 */
import { service, request } from './service';
import * as tools from './tools';

const files = require.context('./modules', true, /\.api\.js$/);
const generators = files.keys().map((key) => files(key).default);

export default Object.assign(
  {},
  ...generators.map((generator) =>
    generator({
      service,
      request,
      tools
    })
  )
);
